home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 353_02 / clock.h < prev    next >
C/C++ Source or Header  |  1992-01-18  |  429b  |  20 lines

  1.           // This is the game clock.  It increments once for every
  2.           //  move, the increment being accomplished in the method
  3.           //  named inc_and_print_time.
  4.  
  5. #ifndef CLOCK_H
  6. #define CLOCK_H
  7.  
  8. class clock {
  9.    int hour;
  10.    int minute;
  11. public:
  12.    clock(void);
  13.    int present_hour(void)    {return hour;}
  14.    int present_minute(void)  {return minute;}
  15.    void inc_and_print_time(void);
  16. };
  17.  
  18. #endif
  19.  
  20.